package com.sptus.web.mapper.slave;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sptus.common.annotation.DataSource;
import com.sptus.common.enums.DataSourceType;
import com.sptus.web.entity.SptUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DataSource(DataSourceType.SLAVE)
//@DS("multi-datasource1")
public interface SptUserRoleMapper extends BaseMapper<SptUserRole> {

    List<String> getRoleCode(@Param("id") String id);
}
